//
//  CenterThreeCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/9/28.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "CenterThreeCell.h"
#import "MatchListModel.h"
@implementation CenterThreeCell

-(void)setModel:(MatchListModel *)model{
    _model = model;
    _pictureView = [[UIImageView alloc] init];
    _pictureView.layer.cornerRadius = 3;
    _pictureView.layer.masksToBounds = YES;
    [_pictureView sd_setImageWithURL:[NSURL URLWithString:model.ImgPath] placeholderImage:[UIImage imageNamed:@""]];
    [self.contentView addSubview:_pictureView];
    [_pictureView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView).with.insets(UIEdgeInsetsMake(0, 0, 0, 0));
    }];
}

//-(void)layoutSubviews{
//    [self createSubViews];
//}
//-(void)createSubViews{
//    _pictureView = [[UIImageView alloc] init];
//    _pictureView.layer.cornerRadius = 3;
//    _pictureView.layer.masksToBounds = YES;
//    _pictureView.image = [UIImage imageNamed:@"首页缩略.jpg"];
//    [self.contentView addSubview:_pictureView];
//    [_pictureView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.edges.equalTo(self.contentView).with.insets(UIEdgeInsetsMake(0, 0, 0, 0));
//    }];
//}
@end
